﻿using System.Collections.ObjectModel;

namespace Helper.Models
{
    public class ExamResultClassDisplayModel : ModelBase
    {
        int classID;
        string nameOfClass;
        ObservableCollection<ExamResultClassDisplayModel> entries;
        public ExamResultClassDisplayModel()
        {
            ClassID = 0;
            NameOfClass = "";
            Entries = new ObservableCollection<ExamResultClassDisplayModel>();
        }

        public int ClassID
        {
            get { return classID; }

            set
            {
                if (value != classID)
                {
                    classID = value;
                    NotifyPropertyChanged("ClassID");
                }
            }
        }
        public string NameOfClass
        {
            get { return this.nameOfClass; }

            set
            {
                if (value != this.nameOfClass)
                {
                    this.nameOfClass = value;
                    NotifyPropertyChanged("NameOfClass");
                }
            }
        }

        public ObservableCollection<ExamResultClassDisplayModel> Entries
        {
            get { return entries; }
            set
            {
                if (value != this.entries)
                {
                    this.entries = value;
                    NotifyPropertyChanged("Entries");
                }
            }
        }
        public override void Reset()
        {
            throw new System.NotImplementedException();
        }
    }
}